/**
 *  eppi.cpp
 *  EPPI-0.0
 *
 *  Created by Juan Carlos Garcia Orden on 15/11/07.
 *
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "simulation.h"
#include <iostream>
#include <mpi.h>

using namespace std;

int rankk;
int ssize;
//int i;

int main(int argc, char* argv[])
{
	MPI::Init(argc,argv);
	rankk = MPI::COMM_WORLD.Get_rank();
	ssize = MPI::COMM_WORLD.Get_size();
	cout << "***** Rank = " << rankk << "\n";
	cout << "***** Size = " << ssize << "\n";
/*
	i = 0;
	cout << "pid is " << getpid() << endl;
	while (0 == i)
     sleep(5);
*/	
	
/** Declares a simulation object */
	Simulation mySimulation(argv[1]);
	
	MPI::Finalize();
	return 0;
}
